package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 请假/调休申请
 *
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("d_break_apply")
public class BreakApply extends Model<BreakApply> {
    @TableId
    private Integer id;

    @ApiModelProperty("发型师")
    private Integer workerId;

    @ApiModelProperty("申请类型 0请假 1调休")
    private Integer type;

    @ApiModelProperty("原因")
    private String reason;

    @ApiModelProperty("状态 0待审核 1审核通过 -1审核驳回")
    private Integer status;

    @ApiModelProperty("开始时间")
    private Date startDatetime;

    @ApiModelProperty("结束时间")
    private Date endDatetime;
}
